const baseURL="http://47.99.192.222:20090/api";  // 公共地址
export default params=>{
  return new Promise((resolve,reject)=>{
    wx.request({
      url:baseURL+params.url,
      method:params.method || "GET",
      data:params.data || {},
      header: {
        'Content-Type':'application/x-www-form-urlencoded' // 'application/x-www-form-urlencoded'  ||  'application/json',
        // 'Authorization': 'Bearer ' + wx.getStorageSync('token')
      },
      success:resolve,
      fail:reject
    })
  })
}